<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登錄頁面</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
</head>
<body>
    <h1>登錄頁面</h1>
    <form>
        <input hidden value="user" name="username">
        <input hidden value="password" name="password">
<!--        <button id="tj" type="button">提交</button>-->
    </form>
    <script>
        $.ajax({
            url:"/gw",
            type:'post',
            data:JSON.stringify({"service":"login","username":$("input[name='username']").val(),"password":$("input[name='password']").val()})

        })
    </script>
</body>
</html>